package com.hzf.workman.dao.model;

import java.io.Serializable;

public class WorkmanManinfoCase implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 关联用户ID(工人ID)
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 案例标题
     *
     * @mbg.generated
     */
    private String caseTitle;

    /**
     * 案例图片
     *
     * @mbg.generated
     */
    private String caseImages;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getCaseTitle() {
        return caseTitle;
    }

    public void setCaseTitle(String caseTitle) {
        this.caseTitle = caseTitle;
    }

    public String getCaseImages() {
        return caseImages;
    }

    public void setCaseImages(String caseImages) {
        this.caseImages = caseImages;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", caseTitle=").append(caseTitle);
        sb.append(", caseImages=").append(caseImages);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        WorkmanManinfoCase other = (WorkmanManinfoCase) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getCaseTitle() == null ? other.getCaseTitle() == null : this.getCaseTitle().equals(other.getCaseTitle()))
            && (this.getCaseImages() == null ? other.getCaseImages() == null : this.getCaseImages().equals(other.getCaseImages()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getCaseTitle() == null) ? 0 : getCaseTitle().hashCode());
        result = prime * result + ((getCaseImages() == null) ? 0 : getCaseImages().hashCode());
        return result;
    }
}